package com.blue.excel.demo;

import com.blue.excel.annotation.*;
import com.blue.excel.type.Alignment;
import com.blue.excel.type.CellType;

import java.util.*;

/**
 * Created by ChenYaHui on 2017/8/1.
 */
@SheetInfo(head = "综合大标题")
public class CustomEntity {

//    @ColField(title = "姓名",stack = @StackCol(value = "个人信息",stackTo = "age"))
    public String name;
    @ColField(title = "年龄",alignment = Alignment.Center)
    public int age;
    @ColField(title = "创建时间")
    public Date createDate;

    @ExtendCols
    public Child child;
    @ExtendCols
    public Child child1;

//    @ExtendCols
    public Map<String,String> extendMap = new HashMap<>();
    @SplitCols(keyTitle = "项",valueTitle = "值")
    public Map<String,Double> extendMapDouble = new HashMap<>();

//    @ExtendCols(itemClass = Child.class)
    public List<Child> splitChild = new ArrayList<>();

//    @SplitCols(itemClass = OtherChild.class)
    public Set<OtherChild> infoSet = new HashSet<>();

    @BgColor
    public int bgColor;

}
